package com.mnyc.system.enmu.research;

import com.mnyc.system.enmu.system.DictEnum;

/**
 * 活动人员类型
 */
public enum ActivityUserTypeEnum implements DictEnum {
    LEADER("参与领导", "leader"),
    ACTUAL("实到人员", "actual"),
    LEAVE("请假人员", "leave"),
    LATE("迟到人员", "late"),
    ABSENCE("缺勤人员", "absence");

    String code;
    String label;

    ActivityUserTypeEnum(String label, String code) {
        this.code = code;
        this.label = label;
    }

    @Override
    public String getCode() {
        return code;
    }

    public String getLabel() {
        return label;
    }

    public static ActivityUserTypeEnum getByCode(String code) {
        return DictEnum.baseGetByCode(ActivityUserTypeEnum.class, code);
    }
}
